#include <stdio.h>
#include <string>
#include <vector>
std::vector<int> tmp;
std::string _name;
void printOwing() {

       double outstanding = 0.0;

       // print banner
       printf("%s", "**************************");
       printf("%s", "***** Customer Owes ******");
       printf("%s", "**************************");

       // calculate outstanding
       for(auto iter : tmp)
       {
           outstanding += iter;
       }

       //print details
       printf("name:%s",  _name.c_str());
       printf("amount%f" , outstanding);
   }

